package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    //查询全部用户
    List<User> selectUsers();
    //查询该id的用户
    User selectUserByID(@Param("user_id")Integer id);
}
